import request from '@/config/request.js';

// 获取用户信息
export const getInfo = () => request.get('/getInfo')

export const selectUserDict = () => request.get('/system/user/selectUserDict')

// 根据岗位编码查询用户信息
export const selectUserListByPostCode = (postCode) => request.get('/system/user/selectUserListByPostCode/' + postCode)

 
// 修改用户
 export const updateUser = (params) => request.put('/system/user', params)
 
 // 查询用户个人信息
 export const getUserProfile = () => request.get('/system/user/profile')
 
  // 修改用户个人信息
   export const updateUserProfile = (params) => request.put('/system/user/profile', params)
 
  // 用户密码重置
export const updateUserPwd = (oldPassword, newPassword) => request.put('/system/user/profile/updatePwd?oldPassword='+oldPassword+"&newPassword="+newPassword)